home *** CD-ROM | disk | FTP | other *** search
/ Champak 103 / Vol 103.iso / games / starship.swf / scripts / frame_2 / DoAction.as
Text File  |  2010-03-13  |  2KB  |  66 lines

  1. function submit(pGame, pDisciple, pScore0, pScore1)
  2. {
  3.    urlSubmit = "http://www.neodelight.com/v4/submit.php";
  4.    session = "g=" + pGame + "&";
  5.    session += "d=" + pDisciple + "&";
  6.    session += "s0=" + pScore0 + "&";
  7.    session += "s1=" + pScore1;
  8.    urlSubmit += "?session=" + encrypt(session);
  9.    getURL(urlSubmit,"_blank");
  10. }
  11. function encrypt(pString)
  12. {
  13.    key = "whytheheckdoyouwasteyourtimehackingthishighscorelist";
  14.    text = escape(pString);
  15.    crypt = "";
  16.    i = 0;
  17.    while(i < text.length)
  18.    {
  19.       char = text.charCodeAt(i);
  20.       shift = key.charCodeAt(i % key.length);
  21.       char += shift;
  22.       crypt += String.fromCharCode(char);
  23.       i++;
  24.    }
  25.    return escape(crypt);
  26. }
  27. cst = new Object();
  28. cst.gravity = 0.1;
  29. cst.timePerScreen = 999;
  30. cst.slowdown = 0.995;
  31. cst.maxObjects = 20;
  32. cst.maxMonster = 10;
  33. temp = new Object();
  34. code = new Array();
  35. code[1] = "savepoint";
  36. code[4] = "easy";
  37. code[6] = "sputnik";
  38. code[9] = "spacehog";
  39. code[11] = "spikecity";
  40. code[14] = "www.neokolor.com";
  41. code[16] = "suicide";
  42. code[19] = "alice";
  43. code[21] = "theboss";
  44. code[22] = "iceworld";
  45. code[23] = "joecool";
  46. code[24] = "tenderly";
  47. code[25] = "penguin";
  48. code[26] = "nevermind";
  49. code[27] = "experts";
  50. code[28] = "outofmind";
  51. code[29] = "trickydisco";
  52. code[30] = "nervous";
  53. code[31] = "jazzthing";
  54. code[32] = "tension";
  55. code[33] = "norman";
  56. code[34] = "ireland";
  57. code[35] = "wisdom";
  58. code[36] = "elvis42";
  59. code[37] = "secret";
  60. code[38] = "teatime";
  61. code[39] = "hardone";
  62. code[40] = "twoleft";
  63. code[41] = "semifinal";
  64. code[42] = "bigboss";
  65. code[43] = "congratulations";
  66.